/**
 * 根据共同的配置修改或者直接自定义个性化的配置
 */
import { commonProtoConfig } from '@/components/common/VisualizationComp/ChartConfig/common'

const { themeColorDiscreteConfig, titleConfig } = commonProtoConfig

export const protoConfig = [
  {
    label: '',
    type: 'property',
    children: [
      // {
      //   type: 'simpleColumnSelect',
      //   label: '颜色映射',
      //   name: 'colorField',
      //   defaultValue: null,
      // },
      ...titleConfig,
      {
        type: 'switch',
        label: '横向排布',
        name: 'fixedPosition',
        defaultValue: false,
      },
      {
        type: 'upload',
        label: '形状图片',
        name: 'imageMaskObj',
        defaultValue: null,
      },
      {
        type: 'inputNumberRange',
        label: '字体大小',
        name: 'fontSizeRange',
        defaultValue: [12, 48],
        props: {
          unit: 'px',
        },
      },
      ...themeColorDiscreteConfig,
    ],
  },
]
/**
 * 图表渲染的默认配置
 */
export const defaultOptions = {
  legendIsShow: false,
  legendPosition: 'null',
}
